/*
 * Project Name: jmax
 * File Name: FilterParam.java
 * Copyright: Copyright(C) 1985-2015 ZKTeco Inc. All rights reserved.
 */
package com.xdtech.sys.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.xdtech.core.model.BaseModel;

/**
 * TODO 一句话功能简述，请确保和下面的block tags之间保留一行空行
 * <p>
 * TODO 功能详细描述，若不需要请连同上面的p标签一起删除
 * 
 * @author <a href="max.zheng@zkteco.com">郑志雄</>
 * @version TODO 添加版本
 * @see 相关类或方法，不需要请删除此行
 * @since 2015-3-18 下午2:22:03
 */
@Entity
@Table(name="SYS_FILTER_PARAM")
public class FilterParam extends BaseModel implements Serializable {
	private static final long serialVersionUID = -3618901389703391530L;

	@Id
    @Column(name = "ID")
    @GeneratedValue(strategy = GenerationType.AUTO)
	protected Long id;
	@Column(name = "PARAM_NAME")
	private String name;
	@Column(name = "PARAM_VALUE")
	private String value;
	
	@ManyToOne
	@JoinColumn(name="TRANSLATOR_ID")
	private FilterTranslator translator = new FilterTranslator();
	
	public Long getId()
	{
		return id;
	}
	public void setId(Long id)
	{
		this.id = id;
	}
	public String getName()
	{
		return name;
	}
	public void setName(String name)
	{
		this.name = name;
	}
	public String getValue()
	{
		return value;
	}
	public void setValue(String value)
	{
		this.value = value;
	}
	public FilterTranslator getTranslator()
	{
		return translator;
	}
	public void setTranslator(FilterTranslator translator)
	{
		this.translator = translator;
	}
	
	

}
